<?php 
/**
 * Класс, который реализовует базовые настройки PHP-Ext
 *
 */

class FRM_View_Ext_Form_Template_One extends FRM_View_Ext_Form_Template_Abstract
{

	protected  function init(){

		if (count($this->langs))
		{
			$tabPanel = new PhpExt_TabPanel();
			$tabPanel ->setPlain(true)
			->setActiveTab(0)
			->setAutoHeight(true)
			->setHideMode("offsets")
			->setLayoutOnTabChange(true)
			->setDeferredRender(false)
			->setCssStyle("padding:10px 10px 0px 10px;");

			foreach ($this->langs as $k=>$v) {
				$this->zones[$k] = new PhpExt_Panel();
				$this->zones[$k] ->setTitle($v)
				->setHideMode("offsets")
				->setLayout(new PhpExt_Layout_FormLayout());

				$tabPanel->addItem($this->zones[$k]);
			}


			$this->form->addItem($tabPanel);
		}



		$this->zones[0] = new PhpExt_Panel();
		$this->zones[0] ->setAutoHeight(true);

		// using ColumnLayout
		$this->zones[0]->setBorder(false)
		->setLayout(new PhpExt_Layout_FormLayout());

		$this->form->addItem($this->zones[0]);


	}

}